package com.newcoder.community.dao;

import com.newcoder.community.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    // 查询不到返回null
    User selectById(int id);

    User selectByName(String name);

    User selectByEmail(String email);

    int insert(User user);

    int updateStatus(@Param("id") int id, @Param("status") int status);

    int updateHeader(@Param("id") int id, @Param("header") String header);

    int updatePassword(@Param("id") int id, @Param("password") String password);
}
